cmake_minimum_required(VERSION 3.14)
project(homeWork9)

set(CMAKE_CXX_STANDARD 11)


set( OpenCV_DIR /home/liu/lib/install/opencv/usr/local/lib/cmake/opencv4)
find_package(OpenCV REQUIRED)


include_directories(3rd/onnxruntime-linux-x64-1.1.0/include
        common/include
#        detect/include
        /home/liu/lib/install/opencv/usr/local/include/opencv4
#        rsn/include
        )
link_directories(
        3rd/onnxruntime-linux-x64-1.1.0/lib
        /home/liu/lib/install/opencv/usr/local/lib
        lib
        )

#aux_source_directory(detect/src DetSource)
#add_library(detect SHARED ${DetSource})


#aux_source_directory(rsn/src RsnSource)
#add_library(rsn SHARED ${RsnSource})



add_executable(homeWork9 main.cpp common/source/config.cpp common/source/jsoncpp.cpp)
target_link_libraries(homeWork9 PUBLIC libonnxruntime.so
        ${OpenCV_LIBS}  ${ONNX_LIB}  opencv_dnn detect  pthread )